import type { AppRouteRecordRaw } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const InterviewQuestionBank: AppRouteRecordRaw = {
  path: '/interviewQuestionBank',
  name: 'InterviewQuestionBank',
  component: LAYOUT,
  // redirect: '/myProject/appraisal',
  meta: {
    title: t('routes.demo.interviewQuestionBank.interviewQuestionBank'),
    icon: 'prime:warehouse',
    orderNo: 6,
    hideBreadcrumb: false,
    hideChildrenInMenu: false,
    hideMenu: false,
  },
  children: [
    {
      path: 'generalOutline',
      name: 'generalOutline',
      component: () => import('@/views/interviewQBank/generalOutline/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.generalOutline'),
        hideMenu: false,
      },
    },
    {
      path: 'htmlQ',
      name: 'htmlQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.html'),
        hideMenu: false,
      },
    },
    {
      path: 'cssQ',
      name: 'cssQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.css'),
        hideMenu: false,
      },
    },
    {
      path: 'javascriptQ',
      name: 'javascriptQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.javascript'),
        hideMenu: false,
      },
    },
    {
      path: 'vueQ',
      name: 'vueQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.vue'),
        hideMenu: false,
      },
    },
    {
      path: 'reactQ',
      name: 'reactQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.react'),
        hideMenu: false,
      },
    },
    {
      path: 'optimizeQ',
      name: 'optimizeQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.optimize'),
        hideMenu: false,
      },
    },
    {
      path: 'frontEndEngineeringQ',
      name: 'frontEndEngineeringQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.frontEndEngineering'),
        hideMenu: false,
      },
    },
    {
      path: 'browserQ',
      name: 'browserQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.browser'),
        hideMenu: false,
      },
    },
    {
      path: 'networkQ',
      name: 'networkQ',
      component: () => import('@/views/interviewQBank/generalTemplateQ/index.vue'),
      meta: {
        title: t('routes.demo.interviewQuestionBank.network'),
        hideMenu: false,
      },
    },
  ],
};

export default InterviewQuestionBank;
